package pyrachnid.view.dnd;

import java.awt.datatransfer.DataFlavor;

/**
 * Mime Factory
 * 
 */
public class ShortFlavor {
	
	/** Attributes **/
	
	private static String _mimeType = DataFlavor.javaJVMLocalObjectMimeType +
    ";class=" + Short.class.getName();
    
    private static DataFlavor _shortFlavor= null;
    
    /** Method **/
    
    public static DataFlavor getShortFlavor() {       
        // Try to create a DataFlavor for short const.
        try {
            _shortFlavor = new DataFlavor(_mimeType);
        } catch (ClassNotFoundException e) {
        	System.out.println("ERROR : unable to create flavor, reason : " + e);
        }
        return _shortFlavor;
    }
}
